/* $Id: JCreateMapDialogUnitTest.java 60 2010-02-01 19:54:35Z aaron.day $ */
package org.crazydays.gameplan.map.swing;


import org.junit.*;
import static org.junit.Assert.*;

import static org.easymock.EasyMock.*;
import static org.easymock.classextension.EasyMock.*;

import org.crazydays.gameplan.map.swing.JCreateMapDialog;
import org.crazydays.gameplan.view.View;

/**
 * JCreateMapDialogUnitTest
 */
public class JCreateMapDialogUnitTest
{
    @Test
    public void testConstructor()
    {
        // mocks
        View view = createMock(View.class);

        // expect
        expect(view.getParent()).andReturn(null);

        // replay
        replay(view);

        // test
        JCreateMapDialog component = new JCreateMapDialog(view);

        // verify
        verify(view);

        assertNotNull("component", component);
    }
}
